package com.fzh.web.yibai.app.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.fzh.web.yibai.app.entity.ArticleImg;
import com.fzh.web.yibai.app.mapper.ArticleImgMapper;
import com.fzh.web.yibai.app.service.ArticleImgService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author fang
 * @since 2021-04-19
 */
@Service
public class ArticleImgServiceImpl extends ServiceImpl<ArticleImgMapper, ArticleImg> implements ArticleImgService {


    @Override
    public List<ArticleImg> findArticleImg(Integer id) {
        QueryWrapper<ArticleImg> wrapper = new QueryWrapper();
        wrapper.eq("article_id",id);
        return baseMapper.selectList(wrapper);
    }
}
